package com.qf.service.impl;

import com.qf.dao.StudentDao;
import com.qf.dao.impl.StudentDaoImplA;
import com.qf.dao.impl.StudentDaoImplB;
import com.qf.service.StudentService;

/**
 * 2019/11/11
 * Administrator
 * spring1111
 * 面向对象面向君  不负代码不负卿
 */
public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        System.out.println("setdao");
        this.studentDao = studentDao;
    }

    public StudentServiceImpl(StudentDao studentDao) {
        System.out.println("studentservice(studentdao)");
        this.studentDao = studentDao;
    }

    public void insert() {
        System.out.println("studentservice--");
        studentDao.insert();
    }
}
